package site.yunnong.atvris.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author zjh
 * @date 2021/7/11 16:03
 */
@ApiModel("关注列表")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserFollowVO {

    @ApiModelProperty("被关注用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uuid;

    @ApiModelProperty("被关注用户头像url")
    private String avatar;

    @ApiModelProperty("被关注用户昵称")
    private String nickname;

    @ApiModelProperty("被关注用户个性签名")
    private String personalSign;

    @ApiModelProperty("关注状态，方便前端取关加关")
    private Boolean hasFollowed;

    @ApiModelProperty("关注时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
